package com.example.stitch;

import android.content.Context;
import android.content.SharedPreferences;
import android.os.Environment;

public class Option{
	public static int mWindWidth;
	public static int mWindHeight;
	public static int mTableWidth;
	public static int mTableHeight;
	public static String s_Path = Environment.getExternalStorageDirectory().getAbsoluteFile() + "/Android/data/com.ssr.sweetstitch";

	// helper preference
	public static boolean getSharedPreferencesValue(Context context, String name, int mode, String key) { 
        SharedPreferences prefs = context.getSharedPreferences(name, mode); 
        return prefs.getBoolean(key, false); 
    }

    public static boolean setSharedPreferencesValue(Context context, String name, int mode, String key, boolean value) { 
        SharedPreferences prefs = context.getSharedPreferences(name, mode); 
        SharedPreferences.Editor editor = prefs.edit(); 
        editor.putBoolean(key, value); 
        return editor.commit(); 
    }
}
